import request from '@/utils/request-trend'

export function backTest(params) {
  return request({
    url: '/api-backtest/simulate/' + params.code + '/' + params.ma + '/' + params.buyThreshold + '/' + params.sellThreshold + '/' + params.serviceCharge + '/' + params.startDate + '/' + params.endDate,
    method: 'GET'
  })
}

export function getCodes() {
  return request({
    url: '/api-codes/codes',
    method: 'GET'
  })
}
